package sicnu.cs.aps.service;

import com.baomidou.mybatisplus.extension.service.IService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sicnu.cs.aps.domain.entity.TeamMember;

/**
 * @author chengke
 * @version 1.0
 * @description 队长邀请成员业务层
 * @date 2022/5/29 15:07
 */
public interface ITeamMemberService extends IService<TeamMember> {

    Integer isInTeam(Long teamMemberId,Long activityId);

    /**
     * 判断成员是否在小队内
     * @param userId 用户id
     * @param teamId 队伍id
     * @return true 在小队内 false 不在小队内
     */
    boolean isMemberInTeam(Long userId, Long teamId);
}
